<%--
  Created by IntelliJ IDEA.
  User: yuyan
  Date: 2023/7/13
  Time: 15:52
  To change this template use File | Settings | File Templates.
--%>
<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@page import="java.nio.channels.SeekableByteChannel"%>
<%@ page import="cn.ustb.entity.LevelExam" %>
<%@ page import="cn.ustb.entity.LevelExamList" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"
         isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>待支付</title>
    <link rel="stylesheet" href="layui-v2.8.4/layui/css/layui.css">
</head>
<body>
<ul class="layui-nav layui-bg-gray" lay-unselect="false">
    <li class="layui-nav-item">
        <a href="javascript:;">选课报名</a>
        <dl class="layui-nav-child">
            <dd><a href="<%=request.getContextPath()%>/courseselect.jsp">选修课报名</a></dd>
            <dd><a href="<%=request.getContextPath()%>/levelexamapply.jsp">考级报名</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item">
        <a href="javascript:;">业务办理</a>
        <dl class="layui-nav-child">
            <dd>
                <a href="<%=request.getContextPath()%>/postponeExamApply.jsp">缓考申请</a>
            </dd>
            <dd>
                <a href="<%=request.getContextPath()%>/exemptionapply.jsp">免修申请</a>
            </dd>
        </dl>
    </li>
    <li class="layui-nav-item">
        <a href="javascript:;">信息查询</a>
        <dl class="layui-nav-child">
            <dd><a href="<%=request.getContextPath()%>/studentInformationServlet.do">学籍信息</a></dd>
            <dd><a href="<%=request.getContextPath()%>/courseSchedule.jsp">课表查询</a></dd>
            <dd><a href="<%=request.getContextPath()%>/studentQuery.grade">课程成绩</a></dd>
            <dd><a href="<%=request.getContextPath()%>/examArrange.jsp">考试安排</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item">
        <a href="<%=request.getContextPath()%>/daizhifu.do">待支付</a>
    </li>
    <li class="layui-nav-item">
        <a href="<%=request.getContextPath()%>/modifypassword.jsp">修改密码</a>
    </li>
    <li class="layui-nav-item">
        <a href="<%=request.getContextPath()%>/logoutServlet">注销</a>
    </li>
    <li class="layui-nav-item">${sessionScope.user.name },您好！</li>
</ul>

${levelExamLists}
${sessionScope.message }
<%session.removeAttribute("message"); %>
<c:if test="${sessionScope.levelExamLists != null }">
    <div>
        <table border="1" cellpadding="0" cellspacing="0">
            <tr>
                <th>学年学期</th>
                <th>考级课程编号</th>
                <th></th>
            </tr>
            <%
//                Map<LevelExam, String> map = (Map<LevelExam, String>)session.getAttribute("map");
//                for(Map.Entry<LevelExam, String> entry : map.entrySet()){
                List<LevelExamList> levelExamLists= (List<LevelExamList>) session.getAttribute("levelExamLists");
                for(LevelExamList lel : levelExamLists){
            %>
<%--            ${lel}--%>
            <tr>
                <td><%= lel.getStudentId() %></td>
                <td><%= lel.getCourseId() %></td>

<%--                <td>--%>
<%--                    <a href="<%=request.getContextPath()%>/apply.apply?courseId=<%= entry.getKey().getCourseId()%>">支付</a>--%>

<%--                </td>--%>
            </tr>

            <%
                }
            %>
        </table>
    </div>
</c:if>
<script src="layui-v2.8.4/layui/layui.js"></script>
<link type="text/css" rel="stylesheet" href="layui-v2.8.4/layui/css/layui.css"/>
</body>
</html>
